<html>
<head>
	<title>Lembar Kontrol Pembayaran</title>
	<style type="text/css">
		*, body {
			font-family: serif;
			font-size: 9.5px;
		}
		
		h1 {
			font-family: sans-serif;
			font-size: 20px;
			font-weight: bold;
			text-decoration: underline;
			margin: 0;
		}
		
		h2 { 
			font-family: sans-serif;
			font-size: 11px;
			font-weight: normal;
			margin: 0;
		}
		
		.form {
			border: 1px solid #EEEEEE;
			width: 680px;
			padding: 10px 15px;
			margin: 5px 0;
		}
		
		.header {
			margin-top: 0;
			margin-bottom: 8px;
		}
		
		.logo {
			float: right;
			text-align: right;
			height: 50px;
			width: 200px;
			margin-top: 10px;
		}
		
		.identitas {
			margin-top: 0;
			margin-bottom: 4px;
		}
		
		.tabel_biaya {
			border-collapse: collapse;
			width: 680px;
		}
		.tabel_biaya th, .tabel_biaya td {
			padding: 1px 4px;
		}
		
		.terbilang {
			margin-top: 5px;
			margin-bottom: 10px;
		}
		
		.terbilang_box {
			border: 1px solid black;
			padding: 2px 5px;
			width: 500px;
		}
		
		.signature {
			text-align: left;
			width: 210px;
			float: right;
		}		
		.penerima {
			border-bottom: 1px solid black;
			width: 200px;
			text-align: center;
		}
		hr {
			border: 0;
			border-top: 1px dashed black;
			height: 1px;
			width: 710px;
			text-align: left;
			margin: 0;
		}
	</style>
</head>
<body>
<?php
	extract($meta);
	extract($data);
	for ($i=1; $i<=$n_copy; $i++) {
?>
<div class="form">
<div class="header">
<div class="logo">
<strong>POLITEKNIK INFORMATIKA DEL</strong><br />
Jl. Sisingamangaraja, Sitoluama<br />
Laguboti, Kab. Tobasa 22381<br />
SUMUT, Indonesia
</div>
<br sytle="clear:both" />
<h1>LEMBAR KONTROL PEMBAYARAN</h1>
<h2>Penerimaan dari Mahasiswa Akt. <?=$angkatan?> Tahun Ajaran <?=$tahun_ajaran?></h2>
</div>

<div class="identitas">
<table class="tabel_identitas">
<tr>
	<td>Nama</td><td>:</td><td><?=$nama?></td>
</tr>
<tr>	
	<td>NIM</td><td>:</td><td><?=$nim?></td>
</tr>
</table>
</div>

<table class="tabel_biaya" border="1">
	<tr><th>No</th><th>BIAYA</th><th>Rp</th><th>KETERANGAN</th></tr>
<?php
	$no = 1;
	if (is_array($tabel)) {
		foreach ($tabel as $row) {
?>
	<tr><td align="center"><?=$no++?></td><td><?=$row['biaya']?></td><td align="right"><?=number_format($row['rp'], 2, ',', '.')?></td><td><?=$row['keterangan']?></td></tr>
<?php
		}
	}
?>
	<tr><td></td><td align="right">JUMLAH</td><td align="right"><?=number_format($jumlah, 2, ',', '.')?></td><td></td></tr>
</table>

<div class="terbilang">
<table>
<tr><td>Terbilang:</td><td class="terbilang_box"><?=$terbilang?></td></tr>
</table>
</div>

<div class="signature">
Sitoluama, <?=$tanggal?><br />
Penerima<br />
<br />
<br />
<br />
<br />
<div class="penerima"><?=$penerima?></div>
</div>

<br style="clear: both" />

</div>

<?php
		if ($i<$n_copy) {
?>
<hr align="left" />
<?php
			if (($i%2)==0) {
?>
<pagebreak />
<?php
			}
		}
		
	}
?>

</body>
</html>